package com.lastproject.dto;

import java.io.Serializable;
import java.util.Date;
import java.util.List;


public class SurveyDTO implements Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = 945060714179331114L;
	
	private int id;
	private String description;
	private Date startDate;
	private Date endDate;
	private int idTopic;
	private int idUser;
	private String title;
	private List<QuestionDTO> questions;
	private EmailGroupDTO emailGroup;
	private boolean finished;

	public SurveyDTO(int id, String description, Date startDate, Date endDate,
			int idTopic, int idUser, String title, EmailGroupDTO emailGroup) {
		this.id = id;
		this.description = description;
		this.startDate = startDate;
		this.endDate = endDate;
		this.idTopic = idTopic;
		this.idUser = idUser;
		this.title = title;
		this.emailGroup = emailGroup;
	}

	public SurveyDTO() {
		super();
	}

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public String getDescription() {
		return description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	public Date getStartDate() {
		return startDate;
	}

	public void setStartDate(Date startDate) {
		this.startDate = startDate;
	}

	public Date getEndDate() {
		return endDate;
	}

	public void setEndDate(Date endDate) {
		this.endDate = endDate;
	}

	public int getIdTopic() {
		return idTopic;
	}

	public void setIdTopic(int idTopic) {
		this.idTopic = idTopic;
	}

	public int getIdUser() {
		return idUser;
	}

	public void setIdUser(int idUser) {
		this.idUser = idUser;
	}

	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	public List<QuestionDTO> getQuestions() {
		return questions;
	}

	public void setQuestions(List<QuestionDTO> questions) {
		this.questions = questions;
	}

	public EmailGroupDTO getEmailGroup() {
		return emailGroup;
	}

	public void setEmailGroup(EmailGroupDTO emailGroup) {
		this.emailGroup = emailGroup;
	}

	public boolean isFinished() {
		return finished;
	}

	public void setFinished(boolean finished) {
		this.finished = finished;
	}

	
	
}
